const HtmlWebpackPlugin =require('html-webpack-plugin');

module.exports={
    mode:'development',
    plugins:[
        new HtmlWebpackPlugin({
            template:__dirname+'/src/index.html',
            fileName:'index.html'
        })
    ],
    module:{
        rules:[
            {test:/\.(js|json|jsx)/,use:'babel-loader',exclude:/node_modules/}
        ]
    }
}